home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4871 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: news.paonline.com!usenet
  2. From: markd@quantum.net (Mark)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Visual C 4.0 CBitmapButton Problem - Please Help
  5. Date: Thu, 01 Feb 1996 13:15:06 GMT
  6. Organization: Pennsylvania Online [Usenet News Server for Hire]
  7. Message-ID: <4eqdfm$9iv@news.paonline.com>
  8. References: <4dkk6e$2n2@nnrp1.news.primenet.com> <30FE9343.1D5F@RPSPO3.AtlantaGA.ATTGIS.COM>
  9. Reply-To: markd@quantum.net
  10. NNTP-Posting-Host: sl27.quantum.net
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. Raman Adlakha <radlakh@RPSPO3.AtlantaGA.ATTGIS.COM> wrote:
  14.  
  15. <snip>
  16.  
  17. >I remember running into similar problem when I started coding with
  18. >MSVC.
  19. >What I did wrong was that in the 
  20.  
  21. >Resource Editor/Bitmap Properties/ID: I entered REDBUTTONU etc 
  22. >without double quotes around it. As a result RC editor's symbol 
  23. >management made #define entries in resource.h Which was the cause
  24. >of all the problems.
  25.  
  26. >So if you have done same mistake you will observe that coming
  27. >up with entirely new names for button caption will work!
  28.  
  29. >So look in resource.h and remove the #define(s) for REDBUTTONU etc.
  30.  
  31. >If it works then remember that one way to learn is from others' 
  32. >mistakes!
  33.  
  34. >bye
  35. >A. Raman
  36.  
  37.  
  38. I had this very problem, and it wasn't until I gave up and posted a
  39. new article that I went back and read this post.  
  40.  
  41. My problem was a failing LoadBitmaps for a CBitmapButton (way down the
  42. function chain in FindResource).  The source of the problem was the
  43. same - I had created the bitmaps without double quotes and they ended
  44. up in resource.h.   argh...  Nothing like fighting the same battle.
  45.  
  46.